import request from '@/utils/request'

// 查询标准工序列表
export function listOperate(query) {
  return request({
    url: '/prs/operate/list',
    method: 'get',
    params: query
  })
}

//字典
export function dictMatching (data) {
  return request({
    url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 查询标准工序详细
export function getOperate(roleId) {
  return request({
    url: '/prs/operate/' + roleId,
    method: 'get'
  })
}

// 新增标准工序
export function addOperate(data) {
  return request({
    url: '/prs/operate',
    method: 'post',
    data: data
  })
}

// 修改标准工序
export function updateOperate(data) {
  return request({
    url: '/prs/operate',
    method: 'put',
    data: data
  })
}


// 删除标准工序
export function delOperate(roleId) {
  return request({
    url: '/prs/operate/' + roleId,
    method: 'delete'
  })
}

// 导出标准工序
export function exportOperate(query) {
  return request({
    url: '/prs/operate/export',
    method: 'get',
    params: query
  })
}